/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - Str1
 * <p>Powered by webrx On 2022-09-13 14:37:50
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Str1 {
    public static void main(String[] args) {
        String a = "hello";
        System.out.println(a);

        a = "java";
        System.out.println(a);

        a = "hello" + a;
        System.out.println(a);

        //声明字符串
        String s1 = "ok";
        String s2 = new String("ok");
        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));

        //字符串转义符
        System.out.println("c:\\user\\abc\\files,h\te\s\s\s\sllo,\"java\"，\'java 19'近期\n发\r\n布。");

        System.out.println("\001");

        //String s3 = new String("ok");

    }
}
